import {createRouter,createWebHistory} from "vue-router";
import Login from "@/login/login.vue";
import User from "@/user/user.vue";
import Layout from "@/layout/Layout.vue";

const router = createRouter({
  history: createWebHistory(),
  routes: [
    { path: "/", 
      redirect: "/user",
      component: Layout,
      children: [
        { path: "/user", component: User },
        { path: "/project", component: Login },

        
        
      ]},
    { path: "/login", component: Login }
]
});

export default router;
